module.exports = {
    mode: 'development',
    devtool: 'cheap-module-source-map',
    // devtool: false,
    target: 'web',
    devServer: {
      hot: true, //热更新
      open: false, //编译完自动打开浏览器
      compress: true, //开启gzip压缩
      hotOnly: true,  // 某个报错模块修改正确之后重新编译浏览器不刷新
      port: 3000, //开启端口号
      historyApiFallback: true,
      // publicPath: '',
      proxy: {
        '/api': {
          target: 'https://api.github.com',
          pathRewrite: { "^/api": "" },
          changeOrigin: true
        }
      }
    },
  }